﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GroupBy.aspx.cs" Inherits="ZX.WebApp.Message.GroupBy" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link rel="stylesheet" type="text/css" href="../Scripts/yui_2.9.0/build/container/assets/skins/sam/container.css" />
      <style>
         .tabck
         {
              width:100%;
         }
        .tableContent
        {
            font-size:12px;
        }
        .tableContent th
        {
            border: solid 1px #D4DBE2;
            font-weight: bold;
            background-color: #F2F8FF;
            white-space: nowrap;
            line-height: 28px;
            text-align: left; padding-left:3px;
        }
        .tableContent td
        {
            border: solid 1px #D4DBE2;
            background-color: #F2F8FF;
            line-height: 28px;
            text-align: left;
            padding-left:3px;
        }
        .textbox
        {
            border-bottom: black 1px solid;
            border-top-style: none;
            border-right-style: none;
            border-left-style: none;
            background-color: white;
            overflow:hidden;
            height: 100%;
            width:98%; 
        }
         .style6
        {
           border-bottom: black 1px solid;
           border-top-style: none;
           border-right-style: none;
           border-left-style: none;
           background-color: white;
           overflow:hidden;
           height: 100%;
           width: 98%;
        }
        .labmessage
        {
            color:Red; 
        }
      </style>
      <script src="../Scripts/jquery-1.6.min.js" type="text/javascript"></script>
      <script type="text/javascript">
       
          function Save()
          {
              var bids = document.getElementById("gbids").value;
              var stypid = document.getElementById("ddlgroupby").value;
              if (queryString("type") == undefined || queryString("type") == null)
              {
                  if (stypid == queryString("typeid"))
                  {
                      alert("所选人员都是从该群组过来的，不允许重复添加！");
                      document.getElementById("ddlgroupby").focus();
                      return;
                  }
                  $.post('MQMessage.ashx', { TYPE: "OrgbodyGroup", PARA: bids + "︾" + stypid },
                    function (data)
                    {
                        alert(data);
                    });
              }
              else
              {
                  $.post('MQMessage.ashx', { TYPE: "DeleteFromType", PARA: bids + "︾" + stypid },
                    function (data)
                    {
                        alert(data);
                        parent.RefreshData();
                    });
              }

            }

            //只取一个URL参数：
            var queryString = function (key)
            {
                return (document.location.search.match(new RegExp("(?:^\\?|&)" + key + "=(.*?)(?=&|$)")) || ['', null])[1];
            }
      </script>
</head>
<body class="yui-skin-sam">
    <form id="form1" runat="server">
    <div>
        <table class="tableContent">
            <tr>
               <td colspan="3"><input type="hidden" id="userid" runat="server" />
               <input type="hidden" id="gbids" runat="server" />
                     <textarea id="txtusernames" name="receave" rows="8"  readonly="readonly"  runat="server"
                        style="width:380px; background-color:Silver"></textarea>
               </td>
           </tr>
   <tr>
        <td >
          <asp:Label ID="Label1" runat="server" Text=""></asp:Label>
        </td>
        <td>
            <asp:DropDownList ID="ddlgroupby" runat="server">
            </asp:DropDownList>
       </td>
       <td >

       </td>
   
   </tr>
<tr>
<td colspan="3">
操作说明：<br />
确认无误后，点击【保存】，即可完成操作！
</td>
</tr>
</table> 
    </div>
    </form>
</body>
</html>
